package com.example.wan1.view.login;

import com.example.wan1.view.coin.LoginCoinContract;

import dagger.Binds;
import dagger.Module;

/***
 * @Author: zxd
 * @CreateDate: 2020/8/26 9:43
 * @Description:
 */
@Module
public abstract class LoginModule {

    @Binds
    abstract LoginContract.View loginView(LoginActivity loginActivity);

    @Binds
    abstract LoginCoinContract.View loginCoinView(LoginActivity loginActivity);

    //错误: @Binds methods' parameter type must be assignable to the return type 刚才弄错类型了,不应该是LoginCoinContract
    //com.example.wan1.view.login.LoginContract.View is bound multiple times 不能绑定多次
    /*@ActivityScope
    @Binds
    abstract LoginContract.View registerView(RegisterActivity registerActivity);*/
}
